<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/style.css">
<title>八维贴吧</title>
</head>
<body>
	<!-- 包含header.jsp -->
	<jsp:include page="/WEB-INF/view/common/header.jsp" />

	<!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->

	<div class="container border-1">
		<div class="row">

			<!-- 个人信息的左侧部分 -->
			<jsp:include page="/WEB-INF/view/my/left.jsp" />

			<!-- 中间部分 -->
			<div class="col10 bg-white" style="padding-left: 50px">


				<form:form modelAttribute="topic" id="userForm"
					action="${pageContext.request.contextPath}/my/publishTopic"
					method="post">
					<table class="table-borderless">
						<tbody>
							<tr>
								<td width="30%"></td>
								<td><span style="color: red"> <form:errors path="*"></form:errors>
								</span></td>
							</tr>
							<tr>
								<td align="right">标题</td>
								<td><form:input path="title" /></td>
							</tr>
							<tr>
								<td align="right">板块</td>
								<td><form:select path="forum.id">
 									    <form:option value="" label="-选择版块-"/> 
										<form:options itemLabel="name" itemValue="id" items="${forums}"/>

									</form:select></td>
							</tr>
							<tr>
								<td align="right">类型</td>
								<td><form:radiobutton path="type" value="NORMAL" label="普通" />
									<form:radiobutton path="type" value="ELITE" label="精华" /> <form:radiobutton
										path="type" value="ANNOUNCEMENT" label="公告" /> <form:radiobutton
										path="type" value="TOP" label="置顶" /></td>
							</tr>

							<tr>
								<td align="right">内容</td>
								<td><form:textarea path="content" rows="10" cols="20" /></td>
							</tr>
							<tr>
								<td></td>
								<td><button class="btn btn-danger">发布</button></td>
							</tr>
						</tbody>
					</table>
				</form:form>



			</div>
		</div>
	</div>




	<!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->

	<!-- jsp包含尾部footer.jsp -->
	<jsp:include page="/WEB-INF/view/common/footer.jsp" />
</body>
</html>